package 剑指offer;

/**
 * @author zhangjunfei
 * @date 2023/9/1 17:00
 */
public class O_64 {
    public int sumNums(int n) {
        return n == 0 ? 0 : n + sumNums(n - 1);
    }
}
